<template>
    <el-card class="contanier">
        <div slot="header" class="clearfix">
    <span>用户留言</span>
    
  </div>

    </el-card>
</template>

<script>

import { getworddata } from "@/api/word";

export default {
    data(){
        return{
            worddata:[]
        }
    },
    mounted(){
        this.initdata()
    },
    methods:{
        async initdata(){
            let result = await getworddata();
            if (result.status == 0) {
                this.worddata=result.data
                console.log(result.data);
            }
        }
    }
}
</script>

<style scoped>
.contanier{
    margin: 30px;
    width: 45%;
    
}
</style>